<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>登录页面</title>
<link rel="stylesheet" data-th-href="@{webjars/bootstrap/3.3.7-1/css/bootstrap.css}">
<link rel="stylesheet" data-th-href="@{webjars/bootstrap/3.3.7-1/css/bootstrap-theme.css}">
<script type="text/javascript" data-th-src="@{webjars/bootstrap/3.3.7-1/js/bootstrap.js}"></script>
<style type="text/css">
	body {
		padding-top: 50px;
	}
	.starter-template {
		padding: 40px 15px;
		text-align: center;
	}
</style>
</head>
<body>
	<nav class="navbar navbar-inverse navbar-fixed-top">
		<div class="container">
			<div class="navbar-header">
				<a class="navbar-brand" href="#">Spring security演示</a>
			</div>
			<div id="navbar" class="collapse navbar-collapse">
				<ul class="nav navbar-nav">
					<li><a data-th-href="@{/}">首页</a></li>
				</ul>
			</div>
		</div>
	</nav>
	<div class="contrainer">
		<div class="starter-template">
			<p data-th-if="${param.logout}" class="bg-warning">已成功注销</p>
			<p data-th-if="${param.error}" class="bg-danger">有错误，请重试</p>
			<h2>使用账号密码登录</h2>
			<form name="form" data-th-action="@{/login}" action="login" method="post"> 
				<div class="form-group">
					<label for="username" class="control-label">账号</label>
					<input id="username" type="text" class="form-control" name="username" placeholder="账号">
				</div>
				<div class="form-group">
					<label for="password" class="control-label">密码</label>
					<input id="password" type="password" class="form-control" name="password" placeholder="密码">
				</div>
				<button type="submit" class="btn btn-primary">登录</button>
			</form>
		</div>
	</div>
</body>
</html>